package ast;

public class BasicTypeDecNode extends Node{
    
	public String id;
	public String assign;
	public String type;
	
    public BasicTypeDecNode (String id, String type, ExprNode right) {
        this.left = null;
        this.right = right;
        this.id = id;
        this.assign = "=";
        this.type = type;
    }
 
    public BasicTypeDecNode (String id, String type) {
        this.left = null;
        this.right = null;
        this.id = id;
        this.type = type;
    }
    
    public Object accept(Visitor v) {
    	return v.visit(this);
    }

}
